home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / funnyquest.swf / scripts / frame_123 / DoAction.as
Text File  |  2007-10-01  |  1KB  |  74 lines

  1. call("/:applyLvRe");
  2. set("/sndMC/:sndMode","clear");
  3. call("/:playSnd");
  4. call("/:removeCell");
  5. tSec = int(totalTime / 1000);
  6. sec = tSec % 60;
  7. min = int(tSec / 60 % 60);
  8. hour = int(int(tSec / 60) / 60);
  9. tellTarget("sec_mc")
  10. {
  11.    gotoAndStop(length(String(eval("../:sec"))));
  12. }
  13. str = String(sec);
  14. j = 0;
  15. k = length(str);
  16. while(k > 0)
  17. {
  18.    tellTarget("sec_mc/n" add j)
  19.    {
  20.       gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
  21.    }
  22.    j++;
  23.    k--;
  24. }
  25. tellTarget("min_mc")
  26. {
  27.    gotoAndStop(length(String(eval("../:min"))));
  28. }
  29. str = String(min);
  30. j = 0;
  31. k = length(str);
  32. while(k > 0)
  33. {
  34.    tellTarget("min_mc/n" add j)
  35.    {
  36.       gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
  37.    }
  38.    j++;
  39.    k--;
  40. }
  41. tellTarget("hour_mc")
  42. {
  43.    gotoAndStop(length(String(eval("../:hour"))));
  44. }
  45. str = String(hour);
  46. j = 0;
  47. k = length(str);
  48. while(k > 0)
  49. {
  50.    tellTarget("hour_mc/n" add j)
  51.    {
  52.       gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
  53.    }
  54.    j++;
  55.    k--;
  56. }
  57. tellTarget("score_mc")
  58. {
  59.    gotoAndStop(length(String(eval("../:score"))));
  60. }
  61. str = String(score);
  62. j = 0;
  63. k = length(str);
  64. while(k > 0)
  65. {
  66.    tellTarget("score_mc/n" add j)
  67.    {
  68.       gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
  69.    }
  70.    j++;
  71.    k--;
  72. }
  73. my_so.clear();
  74.